package com.gitee.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.bo.CookbookBo;
import com.gitee.pojo.Cookbook;
import com.gitee.vo.CookbookVo;
import com.gitee.vo.PageVo;

/**
 * 菜谱管理
 */
public interface ICookbookService extends IService<Cookbook> {

    /**
     * 菜谱列表
     * @param eatTime
     * @param cookbookType
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageVo<CookbookVo> pageCookbookVos(String eatTime, Integer cookbookType, Integer pageNum, Integer pageSize);

    /**
     * 添加菜谱
     * @param cookbookBo
     * @return
     */
    Boolean addCookbook(CookbookBo cookbookBo);

    /**
     * 更新菜谱
     * @param cookbookBo
     * @param cookbookId
     * @return
     */
    Boolean updateCookbook(CookbookBo cookbookBo, Integer cookbookId);

    /**
     * 删除菜谱
     * @param cookbookId
     * @return
     */
    Boolean deleteCookbook(Integer cookbookId);

    /**
     * 批量删除菜谱
     * @param cookbookIds
     * @return
     */
    Boolean deleteCookbookBatch(Integer[] cookbookIds);
}
